<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basepath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>市场分区</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <link href="<%=basepath%>css/index.css" rel="stylesheet" type="text/css">
    <link href="<%=basepath%>css/platform.css" rel="stylesheet" type="text/css">
    <script src="<%=basepath%>js/jquery-1.8.3.min.js"></script>
    <script src="<%=basepath%>js/layer/layer.js"></script>
</head>
<body>
<div class="viewport">
    <div class="header">
       <div class="header-1">
           <a href="javascrpt:void(0)" id="join" class="header-2">
              <span id="account" class="account">${empty user.realName ? '' : user.realName}</span>&nbsp;&nbsp;<span id="deptName" class="deptName">${user.departmentName}</span>
           </a>
           <a href="/wape-web/api/core/centerService?serviceCode=WJ9999&targetURL=store&prefix=3g_platform_shop-rent_op&entrance=yes" class="back" id="back">返回</a>
           <span class="span-num">WWP31000</span>
       </div>
    </div>
    <div class="content m-top">
        <div class="content-1">
            <div class="content-1-1">
                <a href="/wape-web/api/core/centerService?serviceCode=MMZS21102" class="a-1">添加区域类别</a><img alt="粤西农批" src="<%=basepath%>images/mmzs.png" class="img-1">
            </div>
            <div class="content-1-2"><h3>粤西农副产品综合交易中心</h3></div>
        </div>
        <div class="content-2">
            <c:forEach items="${markets}" var="one">
                <c:if test="${one.storeLevelNum == '1'}">
                    <div class="blank-b"></div>
                    <div class="content-2-1">
		                <span class="span-1">${one.storeName}</span>
		                <a href="/wape-web/api/core/centerService?serviceCode=WJ9999&targetURL=sub-region&prefix=3g_platform_shop-rent_wp&toParam={fatherId:'${one.storeId}',fatherName:'${one.storeName}',fatherLevelNum:'${one.storeLevelNum}',fatherType:'${one.storeType}'}" class="a-2">添加二级区域</a>
		            </div>
		            <div class="hr"></div>
                </c:if>
                <c:forEach items="${markets}" var="two">
                    <c:if test="${one.storeId == two.fatherId && two.storeLevelNum == '2' }">
			            <div class="content-2-2">
			                <a href="/wape-web/api/core/centerService?serviceCode=MMZS21103&storeId=${two.storeId}" class="content-2-2-1">
			                   <table>
			                       <tr>
			                          <td class="td-1">${two.storeName}</td>
			                          <td class="td-2">${two.totalArea}m²</td>
			                          <td class="td-3">${two.storeRemark}个商铺</td>
			                          <td class="td-4">
				                          <c:if test="${two.storeType == '10'}">大棚经营区</c:if>
				                          <c:if test="${two.storeType == '20'}">蔬菜经营区</c:if>
				                          <c:if test="${two.storeType == '30'}">水果经营区</c:if>
				                          <c:if test="${two.storeType == '40'}">海鲜经营区</c:if>
				                          <c:if test="${two.storeType == '50'}">冻品经营区</c:if>
				                          <c:if test="${two.storeType == '60'}">干货经营区</c:if>
			                          </td>
			                          <td class="td-5"><img alt="" src="<%=basepath%>images/b43.png" class="img-2"></td>
			                       </tr>
			                   </table>
			                </a>
			            </div>
			            <div class="hr"></div>
                    </c:if>
                </c:forEach>
            </c:forEach>
        </div>
    </div>
    <div class="space"></div>
</div>
</body>
<script type="text/javascript">
     /*错误提示*/
     $(function(){
         var error = "${requestScope.returnMsg}";
         if(error != "" && error != "成功!"){
             layer.msg(error,{shadeClose:true,shade:0.1,time:2000});
         }
     });
</script>
</html>


